[INFO] cloning repository https://github.com/edisonsteele/inventory-toolkit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/edisonsteele/inventory-toolkit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedisonsteele%2Finventory-toolkit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedisonsteele%2Finventory-toolkit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a167cd3b7fdb4a62a9f6de195b39b006daf7c330 [INFO] linting edisonsteele/inventory-toolkit/a167cd3b7fdb4a62a9f6de195b39b006daf7c330 against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedisonsteele%2Finventory-toolkit" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 24% (2418/9793) Updating files: 25% (2449/9793) Updating files: 26% (2547/9793) Updating files: 27% (2645/9793) Updating files: 28% (2743/9793) Updating files: 29% (2840/9793) Updating files: 29% (2841/9793) Updating files: 29% (2851/9793) Updating files: 29% (2871/9793) Updating files: 30% (2938/9793) Updating files: 30% (2992/9793) Updating files: 31% (3036/9793) Updating files: 32% (3134/9793) Updating files: 32% (3222/9793) Updating files: 33% (3232/9793) Updating files: 34% (3330/9793) Updating files: 34% (3408/9793) Updating files: 35% (3428/9793) Updating files: 35% (3512/9793) Updating files: 36% (3526/9793) Updating files: 36% (3534/9793) Updating files: 36% (3596/9793) Updating files: 37% (3624/9793) Updating files: 37% (3629/9793) Updating files: 38% (3722/9793) Updating files: 38% (3736/9793) Updating files: 39% (3820/9793) Updating files: 40% (3918/9793) Updating files: 41% (4016/9793) Updating files: 42% (4114/9793) Updating files: 43% (4211/9793) Updating files: 44% (4309/9793) Updating files: 45% (4407/9793) Updating files: 45% (4415/9793) Updating files: 46% (4505/9793) Updating files: 47% (4603/9793) Updating files: 48% (4701/9793) Updating files: 49% (4799/9793) Updating files: 50% (4897/9793) Updating files: 51% (4995/9793) Updating files: 52% (5093/9793) Updating files: 53% (5191/9793) Updating files: 54% (5289/9793) Updating files: 55% (5387/9793) Updating files: 56% (5485/9793) Updating files: 57% (5583/9793) Updating files: 58% (5680/9793) Updating files: 58% (5717/9793) Updating files: 59% (5778/9793) Updating files: 60% (5876/9793) Updating files: 61% (5974/9793) Updating files: 62% (6072/9793) Updating files: 63% (6170/9793) Updating files: 64% (6268/9793) Updating files: 65% (6366/9793) Updating files: 66% (6464/9793) Updating files: 67% (6562/9793) Updating files: 68% (6660/9793) Updating files: 69% (6758/9793) Updating files: 70% (6856/9793) Updating files: 70% (6890/9793) Updating files: 70% (6898/9793) Updating files: 70% (6904/9793) Updating files: 70% (6914/9793) Updating files: 71% (6954/9793) Updating files: 72% (7051/9793) Updating files: 73% (7149/9793) Updating files: 74% (7247/9793) Updating files: 75% (7345/9793) Updating files: 76% (7443/9793) Updating files: 77% (7541/9793) Updating files: 78% (7639/9793) Updating files: 79% (7737/9793) Updating files: 80% (7835/9793) Updating files: 81% (7933/9793) Updating files: 82% (8031/9793) Updating files: 83% (8129/9793) Updating files: 84% (8227/9793) Updating files: 85% (8325/9793) Updating files: 86% (8422/9793) Updating files: 87% (8520/9793) Updating files: 88% (8618/9793) Updating files: 89% (8716/9793) Updating files: 90% (8814/9793) Updating files: 90% (8877/9793) Updating files: 91% (8912/9793) Updating files: 92% (9010/9793) Updating files: 93% (9108/9793) Updating files: 93% (9171/9793) Updating files: 94% (9206/9793) Updating files: 95% (9304/9793) Updating files: 95% (9325/9793) Updating files: 95% (9386/9793) Updating files: 96% (9402/9793) Updating files: 97% (9500/9793) Updating files: 98% (9598/9793) Updating files: 99% (9696/9793) Updating files: 100% (9793/9793) Updating files: 100% (9793/9793), done. [INFO] started tweaking git repo https://github.com/edisonsteele/inventory-toolkit [INFO] finished tweaking git repo https://github.com/edisonsteele/inventory-toolkit [INFO] tweaked toml for git repo https://github.com/edisonsteele/inventory-toolkit written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/edisonsteele/inventory-toolkit 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/edisonsteele/inventory-toolkit 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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tabled_derive v0.7.0 [INFO] [stderr] Downloaded papergrid v0.11.0 [INFO] [stderr] Downloaded tabled v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 67b2b0c3ee7191d99d5c3161fc3a139c14ab64d2de929284de705001eb0e1c75 [INFO] running `Command { std: "docker" "start" "-a" "67b2b0c3ee7191d99d5c3161fc3a139c14ab64d2de929284de705001eb0e1c75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67b2b0c3ee7191d99d5c3161fc3a139c14ab64d2de929284de705001eb0e1c75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67b2b0c3ee7191d99d5c3161fc3a139c14ab64d2de929284de705001eb0e1c75", kill_on_drop: false }` [INFO] [stdout] 67b2b0c3ee7191d99d5c3161fc3a139c14ab64d2de929284de705001eb0e1c75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 838ad6cebae229435159b1a14cdf65eca9655a36f3e52b1392e30e2024c75086 [INFO] running `Command { std: "docker" "start" "-a" "838ad6cebae229435159b1a14cdf65eca9655a36f3e52b1392e30e2024c75086", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking bytecount v0.6.9 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking papergrid v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling tabled_derive v0.7.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking tabled v0.15.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking inv-tags v0.1.0 (/opt/rustwide/workdir/tools/inv-tags) [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> tools/inv-tags/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-import v0.1.0 (/opt/rustwide/workdir/tools/inv-import) [INFO] [stdout] warning: unused import: `exit_with_error` [INFO] [stdout] --> tools/inv-import/src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use errors::{InventoryError, exit_with_error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-locations v0.1.0 (/opt/rustwide/workdir/tools/inv-locations) [INFO] [stderr] Checking inv-backup v0.1.0 (/opt/rustwide/workdir/tools/inv-backup) [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-locations/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_name` [INFO] [stdout] --> tools/inv-tags/src/main.rs:597:21 [INFO] [stdout] | [INFO] [stdout] 597 | let item_name = obj.get("name").and_then(|v| v.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_name` [INFO] [stdout] --> tools/inv-tags/src/main.rs:667:21 [INFO] [stdout] | [INFO] [stdout] 667 | let item_name = obj.get("name").and_then(|v| v.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `ValidationError`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-tags/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-import/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-import/src/main.rs:417:25 [INFO] [stdout] | [INFO] [stdout] 417 | category_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-import/src/main.rs:418:25 [INFO] [stdout] | [INFO] [stdout] 418 | location_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-locations/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DatabaseError`, `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-backup/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-tags/src/main.rs:700:12 [INFO] [stdout] | [INFO] [stdout] 700 | if let Ok(_) = Uuid::parse_str(tag) { [INFO] [stdout] | -------^^^^^----------------------- help: try: `if Uuid::parse_str(tag).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-tags/src/main.rs:740:12 [INFO] [stdout] | [INFO] [stdout] 740 | if let Ok(_) = Uuid::parse_str(item) { [INFO] [stdout] | -------^^^^^------------------------ help: try: `if Uuid::parse_str(item).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-locations/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-reports v0.1.0 (/opt/rustwide/workdir/tools/inv-reports) [INFO] [stderr] Checking inv-categories v0.1.0 (/opt/rustwide/workdir/tools/inv-categories) [INFO] [stderr] Checking inv-edit v0.1.0 (/opt/rustwide/workdir/tools/inv-edit) [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-locations/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-locations/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-locations/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-reports/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-locations/src/main.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | parent_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:251:42 [INFO] [stdout] | [INFO] [stdout] 251 | id: get_string_value(&row, "id").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors::InventoryError` [INFO] [stdout] --> tools/inv-reports/src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use errors::InventoryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:252:44 [INFO] [stdout] | [INFO] [stdout] 252 | name: get_string_value(&row, "name").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:253:49 [INFO] [stdout] | [INFO] [stdout] 253 | parent_id: get_string_value(&row, "parent_id"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:254:51 [INFO] [stdout] | [INFO] [stdout] 254 | parent_name: get_string_value(&row, "parent_name"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:255:47 [INFO] [stdout] | [INFO] [stdout] 255 | item_count: get_i32_value(&row, "item_count").unwrap_or(0), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:256:50 [INFO] [stdout] | [INFO] [stdout] 256 | created_at: get_string_value(&row, "created_at").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | Ok(get_string_value(&row, "id")) [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> tools/inv-locations/src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | children.entry(location.parent_id.clone()).or_insert_with(Vec::new).push(location); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-categories/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-stock v0.1.0 (/opt/rustwide/workdir/tools/inv-stock) [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-locations/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-edit/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-edit/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> tools/inv-stock/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-locations/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-categories/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-locations/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-locations/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-locations/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DatabaseError`, `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-backup/src/errors.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-backup/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-backup/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last` [INFO] [stdout] --> tools/inv-categories/src/main.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | is_last: bool, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-categories/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-reports/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InventoryError` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-locations/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-locations/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-locations/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-locations/src/main.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | parent_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:251:42 [INFO] [stdout] | [INFO] [stdout] 251 | id: get_string_value(&row, "id").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:252:44 [INFO] [stdout] | [INFO] [stdout] 252 | name: get_string_value(&row, "name").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:253:49 [INFO] [stdout] | [INFO] [stdout] 253 | parent_id: get_string_value(&row, "parent_id"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:254:51 [INFO] [stdout] | [INFO] [stdout] 254 | parent_name: get_string_value(&row, "parent_name"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:255:47 [INFO] [stdout] | [INFO] [stdout] 255 | item_count: get_i32_value(&row, "item_count").unwrap_or(0), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:256:50 [INFO] [stdout] | [INFO] [stdout] 256 | created_at: get_string_value(&row, "created_at").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-locations/src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | Ok(get_string_value(&row, "id")) [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> tools/inv-locations/src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | children.entry(location.parent_id.clone()).or_insert_with(Vec::new).push(location); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-categories/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-categories/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-categories/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking inv-suppliers v0.1.0 (/opt/rustwide/workdir/tools/inv-suppliers) [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-categories/src/main.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | parent_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:251:42 [INFO] [stdout] | [INFO] [stdout] 251 | id: get_string_value(&row, "id").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:252:44 [INFO] [stdout] | [INFO] [stdout] 252 | name: get_string_value(&row, "name").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:253:49 [INFO] [stdout] | [INFO] [stdout] 253 | parent_id: get_string_value(&row, "parent_id"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:254:51 [INFO] [stdout] | [INFO] [stdout] 254 | parent_name: get_string_value(&row, "parent_name"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:255:47 [INFO] [stdout] | [INFO] [stdout] 255 | item_count: get_i32_value(&row, "item_count").unwrap_or(0), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:256:50 [INFO] [stdout] | [INFO] [stdout] 256 | created_at: get_string_value(&row, "created_at").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | Ok(get_string_value(&row, "id")) [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> tools/inv-categories/src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | children.entry(category.parent_id.clone()).or_insert_with(Vec::new).push(category); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-list v0.1.0 (/opt/rustwide/workdir/tools/inv-list) [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Supplier` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use models::Supplier; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thresh` [INFO] [stdout] --> tools/inv-stock/src/main.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | let sql = if let Some(thresh) = threshold { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thresh` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `param_index` is never read [INFO] [stdout] --> tools/inv-edit/src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | param_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-stock/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-edit/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (13/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | / async fn handle_item_edit( [INFO] [stdout] 155 | | client: &DaemonClient, [INFO] [stdout] 156 | | id: &str, [INFO] [stdout] 157 | | name: Option, [INFO] [stdout] ... | [INFO] [stdout] 167 | | clear_location: bool, [INFO] [stdout] 168 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:286:1 [INFO] [stdout] | [INFO] [stdout] 286 | / async fn handle_bulk_edit( [INFO] [stdout] 287 | | client: &DaemonClient, [INFO] [stdout] 288 | | category: Option, [INFO] [stdout] 289 | | location: Option, [INFO] [stdout] ... | [INFO] [stdout] 295 | | dry_run: bool, [INFO] [stdout] 296 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-edit/src/main.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | / if let Some(cat_id) = cat_id { [INFO] [stdout] 379 | | set_clauses.push(format!("category_id = ${}", update_param_index)); [INFO] [stdout] 380 | | update_params.push(Value::String(cat_id.clone())); [INFO] [stdout] 381 | | update_param_index += 1; [INFO] [stdout] 382 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-edit/src/main.rs:377:25 [INFO] [stdout] | [INFO] [stdout] 377 | if let Some(cat_id) = &new_category_id { [INFO] [stdout] | ^^^^^^ replace this binding [INFO] [stdout] 378 | if let Some(cat_id) = cat_id { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-edit/src/main.rs:386:17 [INFO] [stdout] | [INFO] [stdout] 386 | / if let Some(loc_id) = loc_id { [INFO] [stdout] 387 | | set_clauses.push(format!("location_id = ${}", update_param_index)); [INFO] [stdout] 388 | | update_params.push(Value::String(loc_id.clone())); [INFO] [stdout] 389 | | update_param_index += 1; [INFO] [stdout] 390 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-edit/src/main.rs:385:25 [INFO] [stdout] | [INFO] [stdout] 385 | if let Some(loc_id) = &new_location_id { [INFO] [stdout] | ^^^^^^ replace this binding [INFO] [stdout] 386 | if let Some(loc_id) = loc_id { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (12/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:565:1 [INFO] [stdout] | [INFO] [stdout] 565 | / async fn process_command_line_values( [INFO] [stdout] 566 | | client: &DaemonClient, [INFO] [stdout] 567 | | _current_item: &serde_json::Map, [INFO] [stdout] 568 | | name: Option, [INFO] [stdout] ... | [INFO] [stdout] 577 | | _clear_location: bool, [INFO] [stdout] 578 | | ) -> Result<(Option, Option, Option, Option, Option>, Option>)> { [INFO] [stdout] | |_______________________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Supplier` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use models::Supplier; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-list/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-list/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> tools/inv-tags/src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-stock/src/main.rs:602:12 [INFO] [stdout] | [INFO] [stdout] 602 | if let Ok(_) = Uuid::parse_str(item) { [INFO] [stdout] | -------^^^^^------------------------ help: try: `if Uuid::parse_str(item).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `ValidationError`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | if let Ok(_) = Uuid::parse_str(id_or_name) { [INFO] [stdout] | -------^^^^^------------------------------ help: try: `if Uuid::parse_str(id_or_name).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit_with_error` [INFO] [stdout] --> tools/inv-import/src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | use errors::{InventoryError, exit_with_error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-reports/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors::InventoryError` [INFO] [stdout] --> tools/inv-reports/src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use errors::InventoryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-list/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-list/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-list/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `ValidationError`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-suppliers/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-suppliers/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-list/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-list/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-list/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-list/src/output.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> tools/inv-stock/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-suppliers/src/main.rs:295:12 [INFO] [stdout] | [INFO] [stdout] 295 | if let Ok(_) = Uuid::parse_str(id_or_name) { [INFO] [stdout] | -------^^^^^------------------------------ help: try: `if Uuid::parse_str(id_or_name).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-add v0.1.0 (/opt/rustwide/workdir/tools/inv-add) [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> tools/inv-add/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-add/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-add/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_name` [INFO] [stdout] --> tools/inv-tags/src/main.rs:597:21 [INFO] [stdout] | [INFO] [stdout] 597 | let item_name = obj.get("name").and_then(|v| v.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-edit/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-edit/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_name` [INFO] [stdout] --> tools/inv-tags/src/main.rs:667:21 [INFO] [stdout] | [INFO] [stdout] 667 | let item_name = obj.get("name").and_then(|v| v.as_str()).unwrap_or(""); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `ValidationError`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-tags/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-tags/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-tags/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-import/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-import/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-import/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-reports/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InventoryError` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-reports/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-reports/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-import/src/main.rs:417:25 [INFO] [stdout] | [INFO] [stdout] 417 | category_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-import/src/main.rs:418:25 [INFO] [stdout] | [INFO] [stdout] 418 | location_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-tags/src/main.rs:700:12 [INFO] [stdout] | [INFO] [stdout] 700 | if let Ok(_) = Uuid::parse_str(tag) { [INFO] [stdout] | -------^^^^^----------------------- help: try: `if Uuid::parse_str(tag).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-tags/src/main.rs:740:12 [INFO] [stdout] | [INFO] [stdout] 740 | if let Ok(_) = Uuid::parse_str(item) { [INFO] [stdout] | -------^^^^^------------------------ help: try: `if Uuid::parse_str(item).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-delete v0.1.0 (/opt/rustwide/workdir/tools/inv-delete) [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-add/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-add/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-categories/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `thresh` [INFO] [stdout] --> tools/inv-stock/src/main.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | let sql = if let Some(thresh) = threshold { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_thresh` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-stock/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-stock/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-stock/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> tools/inv-add/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-add/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-add/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-add/src/main.rs:200:25 [INFO] [stdout] | [INFO] [stdout] 200 | category_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-add/src/main.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | location_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `param_index` is never read [INFO] [stdout] --> tools/inv-edit/src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 318 | param_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-edit/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-edit/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-edit/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-delete/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-delete/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_ok()` [INFO] [stdout] --> tools/inv-stock/src/main.rs:602:12 [INFO] [stdout] | [INFO] [stdout] 602 | if let Ok(_) = Uuid::parse_str(item) { [INFO] [stdout] | -------^^^^^------------------------ help: try: `if Uuid::parse_str(item).is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (13/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | / async fn handle_item_edit( [INFO] [stdout] 155 | | client: &DaemonClient, [INFO] [stdout] 156 | | id: &str, [INFO] [stdout] 157 | | name: Option, [INFO] [stdout] ... | [INFO] [stdout] 167 | | clear_location: bool, [INFO] [stdout] 168 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:286:1 [INFO] [stdout] | [INFO] [stdout] 286 | / async fn handle_bulk_edit( [INFO] [stdout] 287 | | client: &DaemonClient, [INFO] [stdout] 288 | | category: Option, [INFO] [stdout] 289 | | location: Option, [INFO] [stdout] ... | [INFO] [stdout] 295 | | dry_run: bool, [INFO] [stdout] 296 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-edit/src/main.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | / if let Some(cat_id) = cat_id { [INFO] [stdout] 379 | | set_clauses.push(format!("category_id = ${}", update_param_index)); [INFO] [stdout] 380 | | update_params.push(Value::String(cat_id.clone())); [INFO] [stdout] 381 | | update_param_index += 1; [INFO] [stdout] 382 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-edit/src/main.rs:377:25 [INFO] [stdout] | [INFO] [stdout] 377 | if let Some(cat_id) = &new_category_id { [INFO] [stdout] | ^^^^^^ replace this binding [INFO] [stdout] 378 | if let Some(cat_id) = cat_id { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-edit/src/main.rs:386:17 [INFO] [stdout] | [INFO] [stdout] 386 | / if let Some(loc_id) = loc_id { [INFO] [stdout] 387 | | set_clauses.push(format!("location_id = ${}", update_param_index)); [INFO] [stdout] 388 | | update_params.push(Value::String(loc_id.clone())); [INFO] [stdout] 389 | | update_param_index += 1; [INFO] [stdout] 390 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-edit/src/main.rs:385:25 [INFO] [stdout] | [INFO] [stdout] 385 | if let Some(loc_id) = &new_location_id { [INFO] [stdout] | ^^^^^^ replace this binding [INFO] [stdout] 386 | if let Some(loc_id) = loc_id { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (12/7) [INFO] [stdout] --> tools/inv-edit/src/main.rs:565:1 [INFO] [stdout] | [INFO] [stdout] 565 | / async fn process_command_line_values( [INFO] [stdout] 566 | | client: &DaemonClient, [INFO] [stdout] 567 | | _current_item: &serde_json::Map, [INFO] [stdout] 568 | | name: Option, [INFO] [stdout] ... | [INFO] [stdout] 577 | | _clear_location: bool, [INFO] [stdout] 578 | | ) -> Result<(Option, Option, Option, Option, Option>, Option>)> { [INFO] [stdout] | |_______________________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-export v0.1.0 (/opt/rustwide/workdir/tools/inv-export) [INFO] [stdout] warning: unused import: `OutputFormat` [INFO] [stdout] --> tools/inv-delete/src/main.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | use config::{Config, OutputFormat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::Item` [INFO] [stdout] --> tools/inv-delete/src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use models::Item; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-categories/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-export/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_last` [INFO] [stdout] --> tools/inv-categories/src/main.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | is_last: bool, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_last` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-categories/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-categories/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-categories/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-export/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit_with_error` [INFO] [stdout] --> tools/inv-export/src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | use errors::{InventoryError, exit_with_error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-export/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-export/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `exit_with_error` [INFO] [stdout] --> tools/inv-export/src/main.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 15 | use errors::{InventoryError, exit_with_error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-add/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-add/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-add/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-add/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-categories/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-categories/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-categories/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-categories/src/main.rs:157:23 [INFO] [stdout] | [INFO] [stdout] 157 | parent_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `param_index` is never read [INFO] [stdout] --> tools/inv-delete/src/main.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | param_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:251:42 [INFO] [stdout] | [INFO] [stdout] 251 | id: get_string_value(&row, "id").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:252:44 [INFO] [stdout] | [INFO] [stdout] 252 | name: get_string_value(&row, "name").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:253:49 [INFO] [stdout] | [INFO] [stdout] 253 | parent_id: get_string_value(&row, "parent_id"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:254:51 [INFO] [stdout] | [INFO] [stdout] 254 | parent_name: get_string_value(&row, "parent_name"), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:255:47 [INFO] [stdout] | [INFO] [stdout] 255 | item_count: get_i32_value(&row, "item_count").unwrap_or(0), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:256:50 [INFO] [stdout] | [INFO] [stdout] 256 | created_at: get_string_value(&row, "created_at").unwrap_or_default(), [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tools/inv-categories/src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | Ok(get_string_value(&row, "id")) [INFO] [stdout] | ^^^^ help: change this to: `row` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `or_insert_with` to construct default value [INFO] [stdout] --> tools/inv-categories/src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | children.entry(category.parent_id.clone()).or_insert_with(Vec::new).push(category); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-delete/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-add/src/main.rs:200:25 [INFO] [stdout] | [INFO] [stdout] 200 | category_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-add/src/main.rs:201:25 [INFO] [stdout] | [INFO] [stdout] 201 | location_id.map(|id| Value::String(id)).unwrap_or(Value::Null), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the tuple variant itself: `Value::String` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-to-table v0.1.0 (/opt/rustwide/workdir/tools/inv-to-table) [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> tools/inv-delete/src/main.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 201 | / async fn handle_bulk_delete( [INFO] [stdout] 202 | | client: &DaemonClient, [INFO] [stdout] 203 | | category: Option, [INFO] [stdout] 204 | | location: Option, [INFO] [stdout] ... | [INFO] [stdout] 210 | | dry_run: bool, [INFO] [stdout] 211 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-list/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Table` and `Tabled` [INFO] [stdout] --> tools/inv-list/src/output.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use tabled::{Table, Tabled}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-to-json v0.1.0 (/opt/rustwide/workdir/tools/inv-to-json) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-to-table/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `param_index` is never read [INFO] [stdout] --> tools/inv-delete/src/main.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | param_index += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-delete/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError` and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-delete/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-delete/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-list/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-list/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-list/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-list/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-list/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-list/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-list/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-list/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-list/src/output.rs:73:46 [INFO] [stdout] | [INFO] [stdout] 73 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> tools/inv-delete/src/main.rs:201:1 [INFO] [stdout] | [INFO] [stdout] 201 | / async fn handle_bulk_delete( [INFO] [stdout] 202 | | client: &DaemonClient, [INFO] [stdout] 203 | | category: Option, [INFO] [stdout] 204 | | location: Option, [INFO] [stdout] ... | [INFO] [stdout] 210 | | dry_run: bool, [INFO] [stdout] 211 | | ) -> Result<()> { [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-export/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking inv-to-csv v0.1.0 (/opt/rustwide/workdir/tools/inv-to-csv) [INFO] [stdout] warning: value assigned to `csv_output` is never read [INFO] [stdout] --> tools/inv-export/src/output.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | let mut csv_output = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-export/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-export/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> tools/inv-export/src/daemon_client.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl DaemonClient { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn execute(&self, sql: &str, params: Vec) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_SUCCESS` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const EXIT_SUCCESS: i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_GENERAL_ERROR` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const EXIT_GENERAL_ERROR: i32 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_MISUSE` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const EXIT_MISUSE: i32 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_NO_PERMISSION` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const EXIT_NO_PERMISSION: i32 = 126; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXIT_COMMAND_NOT_FOUND` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const EXIT_COMMAND_NOT_FOUND: i32 = 127; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ConnectionError`, `NotFound`, and `ConfigError` are never constructed [INFO] [stdout] --> tools/inv-export/src/errors.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum InventoryError { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 11 | DatabaseError(String), [INFO] [stdout] 12 | ConnectionError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | ValidationError(String), [INFO] [stdout] 14 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit_with_error` is never used [INFO] [stdout] --> tools/inv-export/src/errors.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn exit_with_error(error: &InventoryError) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Supplier` is never constructed [INFO] [stdout] --> tools/inv-export/src/models.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Supplier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-export/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-export/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-export/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> tools/inv-export/src/output.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / if let Value::Object(obj) = first_row { [INFO] [stdout] 23 | | let headers: Vec<&str> = obj.keys().map(|k| k.as_str()).collect(); [INFO] [stdout] 24 | | writer.write_record(&headers)?; [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> tools/inv-export/src/output.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(first_row) = rows.first() { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 22 | if let Value::Object(obj) = first_row { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ with this pattern [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] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-export/src/output.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 32 | ... .map(|v| format_json_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_json_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tools/inv-to-table/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-export/src/main.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | ... .map(|v| format_tsv_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_tsv_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used consecutive `str::replace` call [INFO] [stdout] --> tools/inv-export/src/main.rs:304:31 [INFO] [stdout] | [INFO] [stdout] 304 | Value::String(s) => s.replace('\t', " ").replace('\n', " ").replace('\r', " "), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(['\t', '\n', '\r'], " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace [INFO] [stdout] = note: `#[warn(clippy::collapsible_str_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> tools/inv-export/src/main.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | ... .map(|v| format_tsv_value(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_tsv_value` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used consecutive `str::replace` call [INFO] [stdout] --> tools/inv-export/src/main.rs:304:31 [INFO] [stdout] | [INFO] [stdout] 304 | Value::String(s) => s.replace('\t', " ").replace('\n', " ").replace('\r', " "), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `replace(['\t', '\n', '\r'], " ")` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_str_replace [INFO] [stdout] = note: `#[warn(clippy::collapsible_str_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking inv-daemon v0.1.0 (/opt/rustwide/workdir/daemon) [INFO] [stdout] warning: unused import: `Arguments` [INFO] [stdout] --> daemon/src/main.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{PgPool, Row, Column, TypeInfo, Arguments, Postgres}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Arguments` [INFO] [stdout] --> daemon/src/main.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{PgPool, Row, Column, TypeInfo, Arguments, Postgres}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> daemon/src/main.rs:258:15 [INFO] [stdout] | [INFO] [stdout] 258 | fn bind_param(mut query: sqlx::query::Query<'_, Postgres, sqlx::postgres::PgArguments>, param: Value) -> sqlx::query::Query<'_, Pos... [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> daemon/src/main.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ... .and_then(|v| serde_json::Number::from_f64(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `serde_json::Number::from_f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> daemon/src/main.rs:258:15 [INFO] [stdout] | [INFO] [stdout] 258 | fn bind_param(mut query: sqlx::query::Query<'_, Postgres, sqlx::postgres::PgArguments>, param: Value) -> sqlx::query::Query<'_, Pos... [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> daemon/src/main.rs:202:43 [INFO] [stdout] | [INFO] [stdout] 202 | ... .and_then(|v| serde_json::Number::from_f64(v)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `serde_json::Number::from_f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 37s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] running `Command { std: "docker" "inspect" "838ad6cebae229435159b1a14cdf65eca9655a36f3e52b1392e30e2024c75086", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "838ad6cebae229435159b1a14cdf65eca9655a36f3e52b1392e30e2024c75086", kill_on_drop: false }` [INFO] [stdout] 838ad6cebae229435159b1a14cdf65eca9655a36f3e52b1392e30e2024c75086