[INFO] cloning repository https://github.com/Alphatecks/senseifi-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Alphatecks/senseifi-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphatecks%2Fsenseifi-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphatecks%2Fsenseifi-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f05b6915ab67fd0baa219635d51718a8a180bc5 [INFO] linting Alphatecks/senseifi-backend against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlphatecks%2Fsenseifi-backend" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 69% (970/1399) Updating files: 70% (980/1399) Updating files: 71% (994/1399) Updating files: 72% (1008/1399) Updating files: 73% (1022/1399) Updating files: 74% (1036/1399) Updating files: 75% (1050/1399) Updating files: 76% (1064/1399) Updating files: 77% (1078/1399) Updating files: 78% (1092/1399) Updating files: 79% (1106/1399) Updating files: 80% (1120/1399) Updating files: 81% (1134/1399) Updating files: 82% (1148/1399) Updating files: 83% (1162/1399) Updating files: 84% (1176/1399) Updating files: 85% (1190/1399) Updating files: 86% (1204/1399) Updating files: 87% (1218/1399) Updating files: 88% (1232/1399) Updating files: 89% (1246/1399) Updating files: 90% (1260/1399) Updating files: 91% (1274/1399) Updating files: 92% (1288/1399) Updating files: 93% (1302/1399) Updating files: 94% (1316/1399) Updating files: 95% (1330/1399) Updating files: 96% (1344/1399) Updating files: 97% (1358/1399) Updating files: 98% (1372/1399) Updating files: 99% (1386/1399) Updating files: 100% (1399/1399) Updating files: 100% (1399/1399), done. [INFO] started tweaking git repo https://github.com/Alphatecks/senseifi-backend [INFO] finished tweaking git repo https://github.com/Alphatecks/senseifi-backend [INFO] tweaked toml for git repo https://github.com/Alphatecks/senseifi-backend written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Alphatecks/senseifi-backend 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/Alphatecks/senseifi-backend 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pin-project-internal v1.1.11 [INFO] [stderr] Downloaded pin-project v1.1.11 [INFO] [stderr] Downloaded nonempty v0.7.0 [INFO] [stderr] Downloaded forwarded-header-value v0.1.1 [INFO] [stderr] Downloaded tonic v0.14.5 [INFO] [stderr] Downloaded tower_governor v0.8.0 [INFO] [stderr] Downloaded zmij v1.0.13 [INFO] [stderr] Downloaded governor v0.10.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] fffbfc0e4c718f5d56daf7dc37030cafb1cf7884bf0146d2569fe0b0cce1e8d2 [INFO] running `Command { std: "docker" "start" "-a" "fffbfc0e4c718f5d56daf7dc37030cafb1cf7884bf0146d2569fe0b0cce1e8d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fffbfc0e4c718f5d56daf7dc37030cafb1cf7884bf0146d2569fe0b0cce1e8d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fffbfc0e4c718f5d56daf7dc37030cafb1cf7884bf0146d2569fe0b0cce1e8d2", kill_on_drop: false }` [INFO] [stdout] fffbfc0e4c718f5d56daf7dc37030cafb1cf7884bf0146d2569fe0b0cce1e8d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] f2f19fb1fd55514566979d12988735e56ca5858026c2889d6695cabfc19c8e3e [INFO] running `Command { std: "docker" "start" "-a" "f2f19fb1fd55514566979d12988735e56ca5858026c2889d6695cabfc19c8e3e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling zmij v1.0.13 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking spinning_top v0.3.0 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking nonempty v0.7.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling tempfile v3.25.0 [INFO] [stderr] Checking quanta v0.12.6 [INFO] [stderr] Checking governor v0.10.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.11 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking pin-project v1.1.11 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking forwarded-header-value v0.1.1 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking tonic v0.14.5 [INFO] [stderr] Checking tower_governor v0.8.0 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> src/routes/protection_routes.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | routing::{delete, get, post, put}, [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: `delete` [INFO] [stdout] --> src/routes/protection_routes.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | routing::{delete, get, post, put}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_number` and `contract_creator` are never read [INFO] [stdout] --> src/clients/etherscan.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct ContractCreationInfo { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 179 | pub block_number: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 180 | pub timestamp: u64, [INFO] [stdout] 181 | pub contract_creator: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractCreationInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/clients/etherscan.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 185 | struct EtherscanContractCreationResponse { [INFO] [stdout] | --------------------------------- field in this struct [INFO] [stdout] 186 | status: String, [INFO] [stdout] 187 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EtherscanContractCreationResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gas` and `chain_id` are never read [INFO] [stdout] --> src/routes/dashboard_routes.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 76 | struct DashboardAnalyzeTxBody { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | pub gas: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | #[serde(default, rename = "chainId")] [INFO] [stdout] 86 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DashboardAnalyzeTxBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `extract_owner_privileges` and `dangerous_functions` are never used [INFO] [stdout] --> src/services/analyzer_service.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl AnalyzerService { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | pub async fn extract_owner_privileges(contract_address: &str) -> OwnerPrivileges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub async fn dangerous_functions(contract_address: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blocked` is never read [INFO] [stdout] --> src/services/protection_engine.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TxEvalResult { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | pub blocked: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_WALLET_STATE` is never used [INFO] [stdout] --> src/models/senseiguard.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const SURFACE_WALLET_STATE: &str = "wallet_state"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_TX_INTENT` is never used [INFO] [stdout] --> src/models/senseiguard.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const SURFACE_TX_INTENT: &str = "tx_intent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_CONTRACT` is never used [INFO] [stdout] --> src/models/senseiguard.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const SURFACE_CONTRACT: &str = "contract"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_OFF_CHAIN` is never used [INFO] [stdout] --> src/models/senseiguard.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const SURFACE_OFF_CHAIN: &str = "off_chain"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `to`, `data`, `value`, and `chain_id` are never read [INFO] [stdout] --> src/models/senseiguard.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 719 | pub struct SimulateTxRequest { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 722 | pub to: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 723 | #[serde(default)] [INFO] [stdout] 724 | pub data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 725 | #[serde(default)] [INFO] [stdout] 726 | pub value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 727 | #[serde(default)] [INFO] [stdout] 728 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulateTxRequest` 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 `ContractFingerprint` is never constructed [INFO] [stdout] --> src/models/senseiguard.rs:742:12 [INFO] [stdout] | [INFO] [stdout] 742 | pub struct ContractFingerprint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunScanResponse` is never constructed [INFO] [stdout] --> src/models/senseiguard.rs:754:12 [INFO] [stdout] | [INFO] [stdout] 754 | pub struct RunScanResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `chain_id` is never read [INFO] [stdout] --> src/models/senseiguard.rs:773:9 [INFO] [stdout] | [INFO] [stdout] 764 | pub struct AnalyzeTxRequest { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 773 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyzeTxRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNATURE_PHISHING` is never used [INFO] [stdout] --> src/models/senseiguard.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub const SIGNATURE_PHISHING: &str = "signature_phishing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAINER_PATTERN` is never used [INFO] [stdout] --> src/models/senseiguard.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub const DRAINER_PATTERN: &str = "drainer_pattern"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BEHAVIORAL_ANOMALY` is never used [INFO] [stdout] --> src/models/senseiguard.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | pub const BEHAVIORAL_ANOMALY: &str = "behavioral_anomaly"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OUTGOING_TX` is never used [INFO] [stdout] --> src/models/senseiguard.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub const OUTGOING_TX: &str = "outgoing_tx"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUSPICIOUS_APPROVAL` is never used [INFO] [stdout] --> src/models/senseiguard.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | pub const SUSPICIOUS_APPROVAL: &str = "suspicious_approval"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCKED_INTERACTION` is never used [INFO] [stdout] --> src/models/senseiguard.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | pub const BLOCKED_INTERACTION: &str = "blocked_interaction"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_by_user_id` is never used [INFO] [stdout] --> src/repositories/dashboard_user_repository.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl DashboardUserRepository { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn get_by_user_id(pool: &DbPool, user_id: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `domain` and `connected_at` are never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DappConnectionRow { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 22 | pub wallet_address: String, [INFO] [stdout] 23 | pub domain: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub connected_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DappConnectionRow` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreatIntelligenceCatalogRow` is never constructed [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct ThreatIntelligenceCatalogRow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ActivityMonitorWalletRow { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | pub user_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActivityMonitorWalletRow` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet_id` is never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ActivityFeedRowLive { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 92 | pub id: Uuid, [INFO] [stdout] 93 | pub wallet_id: Uuid, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActivityFeedRowLive` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 105 | impl SenseiguardRepository { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn list_threat_intelligence_catalog( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | pub async fn count_unread_alerts_this_month(pool: &DbPool, wallet_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub async fn count_unread_alerts_previous_month(pool: &DbPool, wallet_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | pub async fn alerts_count_by_severity(pool: &DbPool, wallet_id: Uuid) -> Result<(i64, i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 674 | pub async fn activity_count_since(pool: &DbPool, wallet_id: Uuid, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 686 | pub async fn activity_suspicious_count_since(pool: &DbPool, wallet_id: Uuid, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 700 | pub async fn min_security_score_active_wallets(pool: &DbPool) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 724 | pub async fn global_last_scan_at(pool: &DbPool) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 801 | pub async fn alerts_count_by_severity_global(pool: &DbPool) -> Result<(i64, i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 847 | pub async fn list_activity_across_wallets(pool: &DbPool, limit: i64) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 886 | pub async fn activity_count_since_global(pool: &DbPool, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 921 | pub async fn activity_suspicious_count_since_global(pool: &DbPool, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | pub async fn transaction_monitoring_global_totals(pool: &DbPool) -> Result<(i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1251 | pub async fn upsert_asset( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1280 | pub async fn create_threat( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1516 | pub async fn get_fingerprint_by_contract( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1526 | pub async fn upsert_contract_fingerprint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1694 | pub async fn upsert_protection_settings( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1806 | pub async fn list_wallets_to_monitor(pool: &DbPool) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1828 | pub async fn create_wallet_scan_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `list_wallets_paginated` is never used [INFO] [stdout] --> src/repositories/wallet_repository.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalletRepository { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn list_wallets_paginated( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `block_number` and `contract_creator` are never read [INFO] [stdout] --> src/clients/etherscan.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 178 | pub struct ContractCreationInfo { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 179 | pub block_number: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 180 | pub timestamp: u64, [INFO] [stdout] 181 | pub contract_creator: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractCreationInfo` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/clients/etherscan.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 185 | struct EtherscanContractCreationResponse { [INFO] [stdout] | --------------------------------- field in this struct [INFO] [stdout] 186 | status: String, [INFO] [stdout] 187 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EtherscanContractCreationResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gas` and `chain_id` are never read [INFO] [stdout] --> src/routes/dashboard_routes.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 76 | struct DashboardAnalyzeTxBody { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | pub gas: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 85 | #[serde(default, rename = "chainId")] [INFO] [stdout] 86 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DashboardAnalyzeTxBody` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `extract_owner_privileges` and `dangerous_functions` are never used [INFO] [stdout] --> src/services/analyzer_service.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl AnalyzerService { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | pub async fn extract_owner_privileges(contract_address: &str) -> OwnerPrivileges { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub async fn dangerous_functions(contract_address: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blocked` is never read [INFO] [stdout] --> src/services/protection_engine.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TxEvalResult { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 38 | pub blocked: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_WALLET_STATE` is never used [INFO] [stdout] --> src/models/senseiguard.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const SURFACE_WALLET_STATE: &str = "wallet_state"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_TX_INTENT` is never used [INFO] [stdout] --> src/models/senseiguard.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const SURFACE_TX_INTENT: &str = "tx_intent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_CONTRACT` is never used [INFO] [stdout] --> src/models/senseiguard.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const SURFACE_CONTRACT: &str = "contract"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SURFACE_OFF_CHAIN` is never used [INFO] [stdout] --> src/models/senseiguard.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const SURFACE_OFF_CHAIN: &str = "off_chain"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `to`, `data`, `value`, and `chain_id` are never read [INFO] [stdout] --> src/models/senseiguard.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 719 | pub struct SimulateTxRequest { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 722 | pub to: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 723 | #[serde(default)] [INFO] [stdout] 724 | pub data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 725 | #[serde(default)] [INFO] [stdout] 726 | pub value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 727 | #[serde(default)] [INFO] [stdout] 728 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulateTxRequest` 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 `ContractFingerprint` is never constructed [INFO] [stdout] --> src/models/senseiguard.rs:742:12 [INFO] [stdout] | [INFO] [stdout] 742 | pub struct ContractFingerprint { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunScanResponse` is never constructed [INFO] [stdout] --> src/models/senseiguard.rs:754:12 [INFO] [stdout] | [INFO] [stdout] 754 | pub struct RunScanResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `chain_id` is never read [INFO] [stdout] --> src/models/senseiguard.rs:773:9 [INFO] [stdout] | [INFO] [stdout] 764 | pub struct AnalyzeTxRequest { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 773 | pub chain_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnalyzeTxRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNATURE_PHISHING` is never used [INFO] [stdout] --> src/models/senseiguard.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub const SIGNATURE_PHISHING: &str = "signature_phishing"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAINER_PATTERN` is never used [INFO] [stdout] --> src/models/senseiguard.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | pub const DRAINER_PATTERN: &str = "drainer_pattern"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BEHAVIORAL_ANOMALY` is never used [INFO] [stdout] --> src/models/senseiguard.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | pub const BEHAVIORAL_ANOMALY: &str = "behavioral_anomaly"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OUTGOING_TX` is never used [INFO] [stdout] --> src/models/senseiguard.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | pub const OUTGOING_TX: &str = "outgoing_tx"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUSPICIOUS_APPROVAL` is never used [INFO] [stdout] --> src/models/senseiguard.rs:105:15 [INFO] [stdout] | [INFO] [stdout] 105 | pub const SUSPICIOUS_APPROVAL: &str = "suspicious_approval"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLOCKED_INTERACTION` is never used [INFO] [stdout] --> src/models/senseiguard.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | pub const BLOCKED_INTERACTION: &str = "blocked_interaction"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_by_user_id` is never used [INFO] [stdout] --> src/repositories/dashboard_user_repository.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl DashboardUserRepository { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn get_by_user_id(pool: &DbPool, user_id: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `domain` and `connected_at` are never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DappConnectionRow { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 22 | pub wallet_address: String, [INFO] [stdout] 23 | pub domain: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub connected_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DappConnectionRow` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreatIntelligenceCatalogRow` is never constructed [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct ThreatIntelligenceCatalogRow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_id` is never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ActivityMonitorWalletRow { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 72 | pub user_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActivityMonitorWalletRow` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `wallet_id` is never read [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct ActivityFeedRowLive { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 92 | pub id: Uuid, [INFO] [stdout] 93 | pub wallet_id: Uuid, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActivityFeedRowLive` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 105 | impl SenseiguardRepository { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn list_threat_intelligence_catalog( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 578 | pub async fn count_unread_alerts_this_month(pool: &DbPool, wallet_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub async fn count_unread_alerts_previous_month(pool: &DbPool, wallet_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | pub async fn alerts_count_by_severity(pool: &DbPool, wallet_id: Uuid) -> Result<(i64, i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 674 | pub async fn activity_count_since(pool: &DbPool, wallet_id: Uuid, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 686 | pub async fn activity_suspicious_count_since(pool: &DbPool, wallet_id: Uuid, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 700 | pub async fn min_security_score_active_wallets(pool: &DbPool) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 724 | pub async fn global_last_scan_at(pool: &DbPool) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 801 | pub async fn alerts_count_by_severity_global(pool: &DbPool) -> Result<(i64, i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 847 | pub async fn list_activity_across_wallets(pool: &DbPool, limit: i64) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 886 | pub async fn activity_count_since_global(pool: &DbPool, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 921 | pub async fn activity_suspicious_count_since_global(pool: &DbPool, since: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 956 | pub async fn transaction_monitoring_global_totals(pool: &DbPool) -> Result<(i64, i64), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1251 | pub async fn upsert_asset( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1280 | pub async fn create_threat( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1516 | pub async fn get_fingerprint_by_contract( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1526 | pub async fn upsert_contract_fingerprint( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1694 | pub async fn upsert_protection_settings( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1806 | pub async fn list_wallets_to_monitor(pool: &DbPool) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1828 | pub async fn create_wallet_scan_history( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `list_wallets_paginated` is never used [INFO] [stdout] --> src/repositories/wallet_repository.rs:110:18 [INFO] [stdout] | [INFO] [stdout] 7 | impl WalletRepository { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn list_wallets_paginated( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/routes/dashboard_routes.rs:349:22 [INFO] [stdout] | [INFO] [stdout] 349 | .map(|dt| format_relative_time(dt)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_relative_time` [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: manually reimplementing `div_ceil` [INFO] [stdout] --> src/routes/dashboard_routes.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | "total_pages": (total as u32 + per_page - 1) / per_page [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(total as u32).div_ceil(per_page)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/routes/dashboard_routes.rs:349:22 [INFO] [stdout] | [INFO] [stdout] 349 | .map(|dt| format_relative_time(dt)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `format_relative_time` [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: manually reimplementing `div_ceil` [INFO] [stdout] --> src/routes/dashboard_routes.rs:377:28 [INFO] [stdout] | [INFO] [stdout] 377 | "total_pages": (total as u32 + per_page - 1) / per_page [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `(total as u32).div_ceil(per_page)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `!RangeInclusive::contains` implementation [INFO] [stdout] --> src/routes/wallet_routes.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | if chain_id < CHAIN_ID_MIN || chain_id > CHAIN_ID_MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!(CHAIN_ID_MIN..=CHAIN_ID_MAX).contains(&chain_id)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/services/analyzer_service.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | code.iter().any(|&b| b == 0xF4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `code.contains(&0xF4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/services/analyzer_service.rs:149:80 [INFO] [stdout] | [INFO] [stdout] 149 | if abi_lower.contains("approve") && abi_lower.contains("transferfrom") { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 150 | | tokens.push("ERC20".to_string()); [INFO] [stdout] 151 | | } else if abi_lower.contains("approve") || abi_lower.contains("transferfrom") { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/services/analyzer_service.rs:151:87 [INFO] [stdout] | [INFO] [stdout] 151 | } else if abi_lower.contains("approve") || abi_lower.contains("transferfrom") { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 152 | | tokens.push("ERC20".to_string()); [INFO] [stdout] 153 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] 178 | | .replace("multicall", "multicall") [INFO] [stdout] 179 | | .replace("approve", "approve"); [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] = note: `#[warn(clippy::no_effect_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] 178 | | .replace("multicall", "multicall") [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/services/protection_engine.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | / if amount_hex == "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" { [INFO] [stdout] 179 | | if score < WEIGHT_UNLIMITED_APPROVAL { [INFO] [stdout] 180 | | score += WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] 181 | | approval_risk = WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] ... | [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 178 ~ if amount_hex == "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" [INFO] [stdout] 179 ~ && score < WEIGHT_UNLIMITED_APPROVAL { [INFO] [stdout] 180 | score += WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] ... [INFO] [stdout] 183 | threat_types.push(crate::models::senseiguard::threat_types::UNLIMITED_APPROVAL.to_string()); [INFO] [stdout] 184 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/services/protection_engine.rs:191:47 [INFO] [stdout] | [INFO] [stdout] 191 | } else if score >= HIGH_WARNING_THRESHOLD { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 192 | | "Review before signing".to_string() [INFO] [stdout] 193 | | } else if score >= MEDIUM_WARNING_THRESHOLD { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/services/protection_engine.rs:193:49 [INFO] [stdout] | [INFO] [stdout] 193 | } else if score >= MEDIUM_WARNING_THRESHOLD { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 194 | | "Review before signing".to_string() [INFO] [stdout] 195 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `!RangeInclusive::contains` implementation [INFO] [stdout] --> src/routes/wallet_routes.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | if chain_id < CHAIN_ID_MIN || chain_id > CHAIN_ID_MAX { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `!(CHAIN_ID_MIN..=CHAIN_ID_MAX).contains(&chain_id)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/services/analyzer_service.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | code.iter().any(|&b| b == 0xF4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `code.contains(&0xF4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/services/senseiguard_service.rs:353:18 [INFO] [stdout] | [INFO] [stdout] 353 | .map(|r| row_to_live_feed_item(r)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `row_to_live_feed_item` [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 `if` has identical blocks [INFO] [stdout] --> src/services/analyzer_service.rs:149:80 [INFO] [stdout] | [INFO] [stdout] 149 | if abi_lower.contains("approve") && abi_lower.contains("transferfrom") { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 150 | | tokens.push("ERC20".to_string()); [INFO] [stdout] 151 | | } else if abi_lower.contains("approve") || abi_lower.contains("transferfrom") { [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/services/analyzer_service.rs:151:87 [INFO] [stdout] | [INFO] [stdout] 151 | } else if abi_lower.contains("approve") || abi_lower.contains("transferfrom") { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 152 | | tokens.push("ERC20".to_string()); [INFO] [stdout] 153 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] = note: `#[warn(clippy::if_same_then_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] 178 | | .replace("multicall", "multicall") [INFO] [stdout] 179 | | .replace("approve", "approve"); [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] = note: `#[warn(clippy::no_effect_replace)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] 178 | | .replace("multicall", "multicall") [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: replacing text with itself [INFO] [stdout] --> src/services/analyzer_service.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let name = n [INFO] [stdout] | ____________________________^ [INFO] [stdout] 175 | | .replace("setapprovalforall", "setApprovalForAll") [INFO] [stdout] 176 | | .replace("increaseallowance", "increaseAllowance") [INFO] [stdout] 177 | | .replace("delegatecall", "delegatecall") [INFO] [stdout] | |____________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_replace [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/services/senseiguard_service.rs:600:18 [INFO] [stdout] | [INFO] [stdout] 600 | .map(|r| Self::threat_row_to_live_signal(r)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `Self::threat_row_to_live_signal` [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 `if` statement can be collapsed [INFO] [stdout] --> src/services/protection_engine.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | / if amount_hex == "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" { [INFO] [stdout] 179 | | if score < WEIGHT_UNLIMITED_APPROVAL { [INFO] [stdout] 180 | | score += WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] 181 | | approval_risk = WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] ... | [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 178 ~ if amount_hex == "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" [INFO] [stdout] 179 ~ && score < WEIGHT_UNLIMITED_APPROVAL { [INFO] [stdout] 180 | score += WEIGHT_UNLIMITED_APPROVAL; [INFO] [stdout] ... [INFO] [stdout] 183 | threat_types.push(crate::models::senseiguard::threat_types::UNLIMITED_APPROVAL.to_string()); [INFO] [stdout] 184 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` has identical blocks [INFO] [stdout] --> src/services/protection_engine.rs:191:47 [INFO] [stdout] | [INFO] [stdout] 191 | } else if score >= HIGH_WARNING_THRESHOLD { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 192 | | "Review before signing".to_string() [INFO] [stdout] 193 | | } else if score >= MEDIUM_WARNING_THRESHOLD { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: same as this [INFO] [stdout] --> src/services/protection_engine.rs:193:49 [INFO] [stdout] | [INFO] [stdout] 193 | } else if score >= MEDIUM_WARNING_THRESHOLD { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 194 | | "Review before signing".to_string() [INFO] [stdout] 195 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> src/services/scoring_engine.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | let trust_score = (100.0 - weighted).round().max(0.0).min(100.0) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `(100.0 - weighted).round().clamp(0.0, 100.0)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/services/senseiguard_service.rs:353:18 [INFO] [stdout] | [INFO] [stdout] 353 | .map(|r| row_to_live_feed_item(r)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `row_to_live_feed_item` [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 closure [INFO] [stdout] --> src/services/senseiguard_service.rs:600:18 [INFO] [stdout] | [INFO] [stdout] 600 | .map(|r| Self::threat_row_to_live_signal(r)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `Self::threat_row_to_live_signal` [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: clamp-like pattern without using clamp function [INFO] [stdout] --> src/services/scoring_engine.rs:88:27 [INFO] [stdout] | [INFO] [stdout] 88 | let trust_score = (100.0 - weighted).round().max(0.0).min(100.0) as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `(100.0 - weighted).round().clamp(0.0, 100.0)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() [INFO] [stdout] = note: clamp returns NaN if the input is NaN [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:198:50 [INFO] [stdout] | [INFO] [stdout] 198 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:598:50 [INFO] [stdout] | [INFO] [stdout] 598 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:635:50 [INFO] [stdout] | [INFO] [stdout] 635 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:198:50 [INFO] [stdout] | [INFO] [stdout] 198 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:598:50 [INFO] [stdout] | [INFO] [stdout] 598 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:1291:5 [INFO] [stdout] | [INFO] [stdout] 1291 | / pub async fn create_threat_with_surface( [INFO] [stdout] 1292 | | pool: &DbPool, [INFO] [stdout] 1293 | | wallet_id: Uuid, [INFO] [stdout] 1294 | | severity: &str, [INFO] [stdout] ... | [INFO] [stdout] 1299 | | explanation: Option<&str>, [INFO] [stdout] 1300 | | ) -> 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: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:635:50 [INFO] [stdout] | [INFO] [stdout] 635 | let prev_start = NaiveDate::from_ymd_opt(prev_year as i32, prev_month, 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `prev_year` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:1369:5 [INFO] [stdout] | [INFO] [stdout] 1369 | / pub async fn create_contract_scan( [INFO] [stdout] 1370 | | pool: &DbPool, [INFO] [stdout] 1371 | | contract_address: &str, [INFO] [stdout] 1372 | | trust_score: i32, [INFO] [stdout] ... | [INFO] [stdout] 1378 | | chain_id: Option, [INFO] [stdout] 1379 | | ) -> 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 function has too many arguments (9/7) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:1718:5 [INFO] [stdout] | [INFO] [stdout] 1718 | / pub async fn upsert_protection_settings_full( [INFO] [stdout] 1719 | | pool: &DbPool, [INFO] [stdout] 1720 | | wallet_address: &str, [INFO] [stdout] 1721 | | auto_security_scan: bool, [INFO] [stdout] ... | [INFO] [stdout] 1727 | | whitelisted_addresses: Option, [INFO] [stdout] 1728 | | ) -> 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 function has too many arguments (8/7) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:1291:5 [INFO] [stdout] | [INFO] [stdout] 1291 | / pub async fn create_threat_with_surface( [INFO] [stdout] 1292 | | pool: &DbPool, [INFO] [stdout] 1293 | | wallet_id: Uuid, [INFO] [stdout] 1294 | | severity: &str, [INFO] [stdout] ... | [INFO] [stdout] 1299 | | explanation: Option<&str>, [INFO] [stdout] 1300 | | ) -> 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] --> src/repositories/senseiguard_repository.rs:1369:5 [INFO] [stdout] | [INFO] [stdout] 1369 | / pub async fn create_contract_scan( [INFO] [stdout] 1370 | | pool: &DbPool, [INFO] [stdout] 1371 | | contract_address: &str, [INFO] [stdout] 1372 | | trust_score: i32, [INFO] [stdout] ... | [INFO] [stdout] 1378 | | chain_id: Option, [INFO] [stdout] 1379 | | ) -> 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 function has too many arguments (9/7) [INFO] [stdout] --> src/repositories/senseiguard_repository.rs:1718:5 [INFO] [stdout] | [INFO] [stdout] 1718 | / pub async fn upsert_protection_settings_full( [INFO] [stdout] 1719 | | pool: &DbPool, [INFO] [stdout] 1720 | | wallet_address: &str, [INFO] [stdout] 1721 | | auto_security_scan: bool, [INFO] [stdout] ... | [INFO] [stdout] 1727 | | whitelisted_addresses: Option, [INFO] [stdout] 1728 | | ) -> 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [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 1` [INFO] running `Command { std: "docker" "inspect" "f2f19fb1fd55514566979d12988735e56ca5858026c2889d6695cabfc19c8e3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2f19fb1fd55514566979d12988735e56ca5858026c2889d6695cabfc19c8e3e", kill_on_drop: false }` [INFO] [stdout] f2f19fb1fd55514566979d12988735e56ca5858026c2889d6695cabfc19c8e3e