[INFO] cloning repository https://github.com/ljm2ya/btc-option-manager [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ljm2ya/btc-option-manager" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fljm2ya%2Fbtc-option-manager", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fljm2ya%2Fbtc-option-manager'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ca4328ae24982c02711753be362ed56e24d33dc3 [INFO] checking ljm2ya/btc-option-manager against master#ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fljm2ya%2Fbtc-option-manager" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/ljm2ya/btc-option-manager [INFO] finished tweaking git repo https://github.com/ljm2ya/btc-option-manager [INFO] tweaked toml for git repo https://github.com/ljm2ya/btc-option-manager written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ljm2ya/btc-option-manager on toolchain ddaf12390d3ffb7d5ba74491a48f3cd528e5d777 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ljm2ya/btc-option-manager 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" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded special v0.10.3 [INFO] [stderr] Downloaded black_scholes v0.10.2 [INFO] [stderr] Downloaded tokio-io-timeout v1.2.1 [INFO] [stderr] Downloaded actix-rt v2.11.0 [INFO] [stderr] Downloaded r2d2_sqlite v0.22.0 [INFO] [stderr] Downloaded regex-lite v0.1.7 [INFO] [stderr] Downloaded actix-http v3.11.1 [INFO] [stderr] Downloaded rusqlite v0.29.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.26.0 [INFO] [stderr] Downloaded nrfind v1.0.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74122c0f84ab1c47d13cf5b3b8ceada5d3de9f64f8e738539baa18e188f8a4d1 [INFO] running `Command { std: "docker" "start" "-a" "74122c0f84ab1c47d13cf5b3b8ceada5d3de9f64f8e738539baa18e188f8a4d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74122c0f84ab1c47d13cf5b3b8ceada5d3de9f64f8e738539baa18e188f8a4d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74122c0f84ab1c47d13cf5b3b8ceada5d3de9f64f8e738539baa18e188f8a4d1", kill_on_drop: false }` [INFO] [stdout] 74122c0f84ab1c47d13cf5b3b8ceada5d3de9f64f8e738539baa18e188f8a4d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddaf12390d3ffb7d5ba74491a48f3cd528e5d777" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 110223c37b539ac91b9c95f2ecf6037ff3ef7f7591dab79b2f00215ff9cb2b0c [INFO] running `Command { std: "docker" "start" "-a" "110223c37b539ac91b9c95f2ecf6037ff3ef7f7591dab79b2f00215ff9cb2b0c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking deranged v0.5.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking regex v1.11.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Compiling regex-lite v0.1.7 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking time v0.3.43 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking special v0.10.3 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking nrfind v1.0.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking black_scholes v0.10.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking actix-rt v2.11.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-io-timeout v1.2.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Compiling btc_options_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking rusqlite v0.29.0 [INFO] [stderr] Checking r2d2_sqlite v0.22.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking actix-http v3.11.1 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stdout] warning: unused imports: `GetPriceResponse` and `PriceDataPoint` [INFO] [stdout] --> tests/price_oracle_integration_test.rs:3:63 [INFO] [stdout] | [INFO] [stdout] 3 | use btc_options_api::price_oracle::{PriceOracle, oracle::{GetPriceResponse, PriceDataPoint}}; [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] --> tests/price_oracle_integration_test.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/main.rs:658:9 [INFO] [stdout] | [INFO] [stdout] 658 | let client = Client::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/main.rs:658:9 [INFO] [stdout] | [INFO] [stdout] 658 | let client = Client::new(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractDb` is never constructed [INFO] [stdout] --> src/main.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct ContractDb { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_contract` and `to_contract` are never used [INFO] [stdout] --> src/main.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl ContractDb { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 94 | // Convert from API contract to DB contract [INFO] [stdout] 95 | fn from_contract(contract: &Contract) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn to_contract(&self) -> Contract { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cached_expiries`, `get_expiry_timestamps`, `get_expiry_timestamp`, `is_cache_empty`, and `get_sorted_expiries` are never used [INFO] [stdout] --> src/iv_oracle.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl IvOracle { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_cached_expiries(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn get_expiry_timestamps(&self) -> Vec<(String, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_expiry_timestamp(&self, expiry_str: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn is_cache_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn get_sorted_expiries(&self) -> Vec<(String, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `migrate_to_string_storage` is never used [INFO] [stdout] --> src/db_migration.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn migrate_to_string_storage(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USD_PRECISION` is never used [INFO] [stdout] --> src/utils.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const USD_PRECISION: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ApiResult` is never used [INFO] [stdout] --> src/error.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub type ApiResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskMetrics` is never constructed [INFO] [stdout] --> src/risk_manager.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RiskMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `expected_loss` is never read [INFO] [stdout] --> src/risk_manager.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct PositionRisk { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 17 | pub max_loss: f64, // Maximum possible loss [INFO] [stdout] 18 | pub expected_loss: f64, // Expected loss based on probability [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PositionRisk` 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 `Transaction` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vin` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Vin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prevout` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Prevout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vout` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Vout { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxStatus` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct TxStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_custom_url`, `get_address_transactions`, `get_transaction`, and `btc_to_satoshis` are never used [INFO] [stdout] --> src/mutiny_wallet.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl MutinyWallet { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn with_custom_url(url: String, network: Network) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub async fn get_address_transactions(&self, address: &str) -> Result, MutinyWalletError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_transaction(&self, txid: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn btc_to_satoshis(btc: f64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractDb` is never constructed [INFO] [stdout] --> src/main.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | struct ContractDb { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_contract` and `to_contract` are never used [INFO] [stdout] --> src/main.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl ContractDb { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 94 | // Convert from API contract to DB contract [INFO] [stdout] 95 | fn from_contract(contract: &Contract) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn to_contract(&self) -> Contract { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_cached_expiries`, `get_expiry_timestamps`, `get_expiry_timestamp`, `is_cache_empty`, and `get_sorted_expiries` are never used [INFO] [stdout] --> src/iv_oracle.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl IvOracle { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn get_cached_expiries(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub fn get_expiry_timestamps(&self) -> Vec<(String, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_expiry_timestamp(&self, expiry_str: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn is_cache_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn get_sorted_expiries(&self) -> Vec<(String, i64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `migrate_to_string_storage` is never used [INFO] [stdout] --> src/db_migration.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn migrate_to_string_storage(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USD_PRECISION` is never used [INFO] [stdout] --> src/utils.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const USD_PRECISION: u32 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/error.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ApiResult` is never used [INFO] [stdout] --> src/error.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | pub type ApiResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskMetrics` is never constructed [INFO] [stdout] --> src/risk_manager.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RiskMetrics { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vin` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Vin { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prevout` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct Prevout { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vout` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct Vout { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TxStatus` is never constructed [INFO] [stdout] --> src/mutiny_wallet.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct TxStatus { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_custom_url`, `get_address_transactions`, `get_transaction`, and `btc_to_satoshis` are never used [INFO] [stdout] --> src/mutiny_wallet.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 152 | impl MutinyWallet { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn with_custom_url(url: String, network: Network) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub async fn get_address_transactions(&self, address: &str) -> Result, MutinyWalletError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_transaction(&self, txid: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn btc_to_satoshis(btc: f64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "110223c37b539ac91b9c95f2ecf6037ff3ef7f7591dab79b2f00215ff9cb2b0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110223c37b539ac91b9c95f2ecf6037ff3ef7f7591dab79b2f00215ff9cb2b0c", kill_on_drop: false }` [INFO] [stdout] 110223c37b539ac91b9c95f2ecf6037ff3ef7f7591dab79b2f00215ff9cb2b0c